<?php
require_once '../../global.inc.php';
//SESSION中取出会员资料信息
$templateInfo		= $_SESSION["templateInfo"];
$attachmentArray	= $_SESSION["attachmentArray"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.input1 {
	width:100%;
}
textarea {
	width:100%;
	resize:none;
	font-size: 12px;
}
div{margin:0 10px}
.STYLE1  {color: #e1e2e3; font-size: 12px;}
.STYLE6  {color: #000000; font-size: 12px;}
.STYLE10 {color: #000000; font-size: 12px;}
.STYLE19 {color: #344b50; font-size: 12px;}
.STYLE21 {color: #3b6375; font-size: 12px;}
.STYLE22 {color: #295568; font-size: 12px;}

-->
</style>
</head>

<body>
<div align="center"><h3>活动模板详细信息</h3></div>
<form action="" method="post" >
<table align="center" width="70%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a8c7ce">
	<tr>
		<td width="15%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">模板名称：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><input readonly="readonly" class="input1" type="text" id = "subject" name="subject" value="<?php echo $templateInfo['subject']?>"/></div></td>
	</tr>
	<tr>
		<td width="15%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">模板内容：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><textarea  readonly="readonly" name="travel" id="travel"  rows="20"><?php echo $templateInfo['travel']?>"/></textarea></div></td>
	</tr>
	<tr>
		<td width="15%" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">预估费用：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="center"><input readonly="readonly" class="input1" type="text" id = "fee" name="fee" value="<?php echo $templateInfo['fee']?>"/></div></td>
	</tr>
	<tr >
		<td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="left"><span class="STYLE10">附件列表：</span></div></td>
		<td bgcolor="#FFFFFF" class="STYLE6"><div align="left"> 
		<?php 
		if(!empty($_SESSION["attachmentArray"])){
			foreach ($_SESSION["attachmentArray"] as $attachmentInfo){
				$fileName = $attachmentInfo["file_name"];
				$filePath = $attachmentInfo["file_path"];
				echo "<a href='download.php?n=$fileName&p=$filePath'>".$fileName."</a><br/>";
			}
		}else{
			echo "无附件";
		}
		?>
		</div></td>
	</tr>
	<!-- IE不兼容，删除返回按钮
	<tr bgcolor="#FFFFFF">
    	<td colspan="2"><div align="center"><input type="button" id = "button1" name="button1" value="返回" onclick="javascript:history.go(-1);"/></div></td>
    </tr>
     -->
</table>
</form>
</body>
</html>
